package dome2;

import dome1.Animal;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 王圆豪
 * Date: 2024-05-22
 * Time: 21:47
 */
public class Test {
    public static void todraw(Shape shape) {
        shape.draw();
//        shape.fold();
    }
    public static void main(String[] args) {
        Shape shape1 = new Rot(5, 10);
        todraw(shape1);

        Shape shape2 = new Tri(2,5);
        todraw(shape2);
    }
}





